#pragma once

#include <QWidget>
#include <QJsonObject>
#include "networkmanager.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MedicineAddWindow; }
QT_END_NAMESPACE

class MedicineAddWindow : public QWidget
{
    Q_OBJECT

public:
    MedicineAddWindow(QWidget *parent = nullptr);
    ~MedicineAddWindow();

private slots:
    void on_submit_clicked();
    void on_resetButton_clicked();
    void handleAddMedicineResponse(const QJsonObject &response);

private:
    Ui::MedicineAddWindow *medicineaddwindowUi;
    NetworkManager *networkManager;
};
